package cn.yanhu.kuwanapp.home.adapter

import android.content.Context
import cn.woochen.comlib.adapter.CommonRecyclerAdapter
import cn.yanhu.kuwanapp.R
import cn.yanhu.kuwanapp.bean.response.RespUserInfoBean
import cn.yanhu.kuwanapp.databinding.ItemTopMenuBinding

/**
 *
 * 类描述：
 * @author：woochen
 * create at：2021/7/28 7:19 AM
 */
class HomeTopMenuAdapter(datas: List<RespUserInfoBean.Icon>) :
        CommonRecyclerAdapter<RespUserInfoBean.Icon>(datas, R.layout.item_top_menu) {

    override fun convert(holder: ViewHolder, item: RespUserInfoBean.Icon) {
        holder.getDataBinding<ItemTopMenuBinding?>()?.let {
            it.topMenuBean = item
        }
    }
}